import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Test from '../views/books/Test.vue'
Vue.use(VueRouter)

const routes = [{
  path:"/",
  redirect:"/Home"
},
  {
    component: Home,
    path: '/Home',
    children:[
    {
      path:"/Home/Test",
      component:Test
    }
  ]
}]

const router = new VueRouter({
  routes
})

export default router
